#!/bin/bash

## jcop emulator stuff
## export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/tews/java/card/lib/x86
## 
## # Path to jpcsc.jar
## JPCSC=/home/tews/java/card/lib/jar/jpcsc.jar
## 
# Path to offcard.jar
#OFFCARD=/home/tews/java/card/lib/jar/offcard.jar


FORCE_IPV4=-Djava.net.preferIPv4Stack=true

#JCKIT=
OFFCARD=
GPM=

#APDUIOJAR=$JCKIT/lib/apduio.jar
#EMULATORIOJAR=../emulator/smartcardio/emulatorio.jar
JCOPIO=../emulator/jcop/jcopio.jar
#JCCP=$JCKIT/lib/api.jar

#CLASSPATH=_java_build_dir/test_host:$EMULATORIOJAR:$APDUIOJAR:$JCOPIO:$OFFCARD
CLASSPATH=_java_build_dir/rsa_card_test:$OFFCARD:$JCOPIO:$GPM

#set -x
java -ea $FORCE_IPV4 -classpath $CLASSPATH ds/ov2/front/Card_testframe $*
